package trunk;

public class MotMemoire {
	
	Inst op;
	int a,b;
	Mode ma, mb;
	
	MotMemoire(String op, int a, String ma, int b, String mb) throws InstructionException, ModeException {
		this.op = Inst.toInst(op);
		this.a = a;
		this.ma = Mode.toMode(ma);
		this.b = b;
		this.mb =  Mode.toMode(mb);
	}
	
	public void print() {
		System.out.print(op.toString() + " ");
		System.out.print(ma.toString() + a + ", ");
		System.out.println(mb.toString() + b + " ");
	}
	
}
